package com.chenyun.system.rpc;

import com.chenyun.system.param.SendSmsParam;
import com.chenyun.system.service.impl.CommonServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;
import java.util.List;

/**
 * 远程调用类
 * @Author： Lonni
 * @Date： 2025/3/19  17:21
 */
@DubboService(interfaceClass = ISmsSendRpc.class)
@Slf4j
public class SmsSendRpcImpl implements ISmsSendRpc{
    @Resource
    private CommonServiceImpl commonService;

    /**
     * 发送短信验证码
     *
     * @param params
     * @return
     */
    @Override
    public Boolean sengPhoneCode(List<SendSmsParam> params) {
        return  commonService.sengPhoneCode(params);

    }

    /**
     * 获取短信验证码
     *
     * @param param
     * @return
     */
    @Override
    public Object getPhoneCode(SendSmsParam param) {
        return  commonService.getPhoneCode(param);
    }
}
